//
//  MIDIticketingCell.m
//  迷笛
//
//  Created by . on 2018/10/31.
//  Copyright © 2018年 🍃🌺🌺🍃. All rights reserved.
//

#import "MIDIticketingCell.h"

@implementation MIDIticketingCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self addSubview:self.hutiamge1];
        [self.hutiamge1 mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.centerY.mas_equalTo(self);
            make.top.mas_offset(WidthScale(10));

            make.left.mas_equalTo(WidthScale(25));
            make.width.mas_equalTo(WidthScale(158));
            make.height.mas_equalTo(kDevice_Is_iPhoneX?HeighX(182):HeightScale(182));
        }];
        [self.hutiamge1 addSubview:self.hutback1];
        [self.hutback1 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.hutiamge1);
            make.bottom.mas_offset(WidthScale(0));
            make.width.mas_offset(WidthScale(159));
            make.height.mas_offset(kDevice_Is_iPhoneX?HeighX(40):HeightScale(40));
        }];
        [self.hutback1 addSubview:self.tile1];
        [self.tile1 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.hutback1);
            make.centerY.equalTo(self.hutback1);
            make.width.mas_offset(WidthScale(159));
            make.height.mas_offset(kDevice_Is_iPhoneX?HeighX(40):HeightScale(40));
        }];
        
        
        
        
        [self addSubview:self.hutiamge2];
        [self.hutiamge2 mas_makeConstraints:^(MASConstraintMaker *make)
        {
            make.top.equalTo(self.hutiamge1);
            make.left.equalTo(self.hutiamge1.mas_right).offset(WidthScale(10));
            make.width.mas_equalTo(WidthScale(156));
            make.height.mas_equalTo(kDevice_Is_iPhoneX?HeighX(83):HeightScale(83));
        }];
        [self.hutiamge2 addSubview:self.hutback2];
        [self.hutback2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.hutiamge2);
            make.bottom.mas_offset(WidthScale(0));
            make.width.mas_offset(WidthScale(156));
            make.height.mas_offset(kDevice_Is_iPhoneX?HeighX(20):HeightScale(20));
        }];
        [self.hutback2 addSubview:self.tile2];
        [self.tile2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.hutback2);
            make.centerY.equalTo(self.hutback2);
            make.width.mas_offset(WidthScale(156));
            make.height.mas_offset(kDevice_Is_iPhoneX?HeighX(20):HeightScale(20));
        }];
        
        [self addSubview:self.hutiamge3];
        [self.hutiamge3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.hutiamge2.mas_bottom).offset(WidthScale(15));
            make.left.equalTo(self.hutiamge2);
            make.width.mas_equalTo(WidthScale(156));
            make.height.mas_equalTo(kDevice_Is_iPhoneX?HeighX(83):HeightScale(83));
        }];
        [self.hutiamge3 addSubview:self.hutback3];
        [self.hutback3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.hutiamge3);
            make.bottom.mas_offset(WidthScale(0));
            make.width.mas_offset(WidthScale(156));
            make.height.mas_offset(kDevice_Is_iPhoneX?HeighX(20):HeightScale(20));
        }];
        [self.hutback3 addSubview:self.tile3];
        [self.tile3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.hutback3);
            make.centerY.equalTo(self.hutback3);
            make.width.mas_offset(WidthScale(156));
            make.height.mas_offset(kDevice_Is_iPhoneX?HeighX(20):HeightScale(20));
        }];
    }
    return self;
}
-(UIImageView *)hutiamge1
{
    if (!_hutiamge1)
    {
        _hutiamge1 =[[UIImageView alloc]init];
    }
    return _hutiamge1;
}
-(UIImageView *)hutiamge2
{
    if (!_hutiamge2)
    {
        _hutiamge2 =[[UIImageView alloc]init];
    }
    return _hutiamge2;
}




-(UIImageView *)hutiamge3
{
    if (!_hutiamge3)
    {
        _hutiamge3 =[[UIImageView alloc]init];
    }
    return _hutiamge3;
}
-(UIImageView *)hutback1
{
    if (!_hutback1)
    {
        _hutback1 =[[UIImageView alloc]init];
    }
    return _hutback1;
}
-(UILabel *)tile1
{
    if (!_tile1)
    {
        _tile1 =[[UILabel alloc]init];
        _tile1.font =[UIFont systemFontOfSize:WidthScale(12)];
        _tile1.textColor = [UIColor colorWithHexString:@"#FFFFFF"];
        _tile1.numberOfLines = 0;
    }
    return _tile1;
}
-(UIImageView *)hutback2
{
    if (!_hutback2)
    {
        _hutback2 = [[UIImageView alloc]init];
    }
    return _hutback2;
}
-(UILabel *)tile2
{
    if (!_tile2)
    {
        _tile2 =[[UILabel alloc]init];
        _tile2.font =[UIFont systemFontOfSize:WidthScale(12)];
        _tile2.textColor = [UIColor colorWithHexString:@"#FFFFFF"];
    }
    return _tile2;
}
-(UIImageView *)hutback3
{
    if (!_hutback3)
    {
        _hutback3= [[UIImageView alloc]init];
    }
    return _hutback3;
}
-(UILabel *)tile3
{
    if (!_tile3)
    {
        _tile3 =[[UILabel alloc]init];
        _tile3.font =[UIFont systemFontOfSize:WidthScale(12)];
        _tile3.textColor = [UIColor colorWithHexString:@"#FFFFFF"];
    }
    return _tile3;
}
@end
